package cn.zhiquxing.pipeline;

import cn.zhiquxing.domain.BasicResultVO;
import cn.zhiquxing.domain.ProcessModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class ProcessContext<T extends ProcessModel> implements Serializable {

    private String code;

    private T processModel;

    private Boolean needBreak;

    private BasicResultVO response;
}
